package com.ykt.validator;

import com.jfinal.core.Controller;

/**
 * 收藏校验器
 * @author long.hua
 * @version 1.0.0
 * @since 2016-02-21 22:41
 */
public class FavoriteValidator extends BaseValidator{

    @Override
    protected void validate(Controller c) {
        validateRequired("shopId", "shopIdMsg", "商铺ID不能为空！");
    }

    @Override
    protected void handleError(Controller c) {
        c.renderJson(super.toJsonText(c));
    }

}
